﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Runtime.InteropServices;
using Microsoft.Office.Interop.Excel;

namespace ObjectModel.Excel.Old
{
    /// <summary>
    /// Holds all the serializable information required to resolve a range object
    /// using a literal range reference.
    /// </summary>
    public class LiteralRangeBase : ConditionalOfflineRange
    {
        private string mAddress;

        public string Address // To be serialized. Must be public.
        {
            get { return mAddress; }
            set
            {
                mAddress = value;
                OnPropertyChanged("Address");
            }
        }

        [XmlIgnore]
        public override Range Range
        {
            get { return base.Range; }
            
            set
            {
                base.Range = value;
                mAddress = value.Address;
            }
        }
    }
}
